package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.Report;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/9/3
 **/
public interface ReportMapper {
    public Long counttaiyangdaoshiyi(@Param("time") Date time);
    public Long counttaiyangdaoshier(@Param("time") Date time);
    public Long countyihaoyuanshiyi(@Param("time") Date time);
    public Long countyihaoyuanshier(@Param("time") Date time);
    public Report selectById(Long id);
    public List<Report> selectList(Report report);
    public List<Report> selectCustomerReportList(Report report);
    public List<Report> selectDeviceReportList(Report report);
    public List<Report> selectNotFinishedList(Report report);
    public List<Report> selectNeedMeCustomerList(Long keeperId);
    public List<Report> selectNeedMeDeviceList(Long keeperId);
    public List<Report> selectNeedMeDeviceListFinished(Long keeperId);
    public int insert(Report report);
    public int update(Report report);
    public int deleteById(Long id);
    public int deleteByIds(List<Long> ids);

    List<Report> selectAll(Report report);

    Integer selectListCount(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("location") String location);
}
